cmake_minimum_required(VERSION 3.19.8)
PROJECT(idc_mesh C)

include_directories(./ ./service ./utils ./comm ./ubus)

add_subdirectory(./service)
add_subdirectory(./utils)
add_subdirectory(./ubus)

aux_source_directory(. SRCS)
set(OBJ_LIST cjson uci pthread curl ubus ubox idc_ubus service utils)

add_executable(idc_mesh ${SRCS})

target_link_libraries(idc_mesh ${OBJ_LIST})
INSTALL(TARGETS idc_mesh RUNTIME DESTINATION bin)











